(function() {
  app.directive('dirButton', function() {

    return {
      restrict: 'EA',
      template: '<a class="custom_button" ng-bind="value"></a>',
      replace: true,
      scope: {},
      link: function(scope, ele, attr) {
        scope.value = attr.value;
        if (attr.width === 'block') {
          ele.addClass('custom_button_block');
        }
      }
    };
  });

})();